# -*- coding: utf-8 -*-
"""
@Time ： 2020/11/27 9:30
@Auth ： Mr. JJ_Cloud
@Company ：testingedu.com.cn
@Function ：请输入模块功能描述
"""


# i = 0
# while i < 11:
#     print(i)
#     i += 1
#
# for a in range(11):
#     print(a)

message = "Welcome to the year of 2020"
import re
p = re.compile('(\d+)')
m = p.search(message)
print(m.group())

# 正则表达式
qq = "^\d{8}$"
mobile = "^1\d{10}$"
bankcard = "^\d{14,18}$"
ab = "^ab*$","^(ab)*","^(\(ab\))*"
china_mobile = "^(130|131|132|155|156|185|145|176)\d{8}$","^((13[0-2])|(15[56])|(18[5-6])|145|176)\d{8}$"